package com.atguigu.lease.common.minio;

import io.minio.MinioClient;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
//扫描
//批量读取
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {
    //配置文件中自定义的key是- 支持-和驼峰式映射自动转化
    //单个属性读取
    //    @Value("${minio.endpoint}")
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;
}
